<?php 

require_once "gobal.php";

$basepath=getBasePath();

$sql="select * from sys_ad ";

$ads=fetch_rows($sql);

$customer=currCustomer();

?>
<!DOCTYPE html>
<html>
  <head>

   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	<!-- <base href="<?php echo $basepath;?>" target="_self" />  -->
    <title>宅修客-手机快修专家</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/framework7/1.4.2/css/framework7.ios.min.css">
    
    <script type="text/javascript" src="http://cdn.bootcss.com/framework7/1.4.2/js/framework7.min.js"></script>
    <link rel="stylesheet" href="style/index/my-app.css?v=7">
    
    <style>
        
        .icon-user{
            
            width:40px;
            height:40px;
            background-size:40px 40px;
            background-image: url(<?php echo $customer["wxmp_headimgurl"] ;?>);
        }
        
    </style>
    
    
  </head>
  <body>
    <div class="statusbar-overlay"></div>
    <div class="panel-overlay"></div>
    <div class="views">
      <div class="view view-main">





      <div class="navbar border-bottom-blue">
          <div class="navbar-inner">
            <div class="navbar-logo center sliding"></div>
            <div class="right"><a  href="customer/center.php" class="link icon-only"><i class="icon icon-user"></i></a></div>
          </div>
        </div>
        <div class="pages navbar-through">
          <div data-page="swiper-horizontal" class="page">
            <div class="page-content" style=" padding-bottom:80px;">

              <div data-pagination=".swiper-pagination" data-pagination-hide="true" class="swiper-container swiper-init banner-slider">
                <div class="swiper-wrapper">
                        <?php 
                        
                            foreach($ads as $ad){
                                
                                echo "<a class='swiper-slide external' href='".$ad["link_href"]."' title='".$ad["link_title"]."' style='background:url(".$ad["link_imgsrc"].") center;background-size:auto 110px;height: 110px; display:block;' ></a>";
                                
                            }
                        
                        ?>
                        
                        

                </div>
                <div class="swiper-pagination"></div>
              </div>

              <a class="index-select-item click-active" href="device_repair/device-select.php">
                <i class="mainpic index-icon1"></i>
                <div class="title">手机维修</div>
                <div class="subtitle">目前暂支持iPhone系列</div>
                <i class="icon icon-arow-right"></i>
              </a>


              <a class="index-select-item click-active" href="device_recycle/device-select.php">
                <i class="mainpic index-icon3"></i>
                <div class="title">二手回收</div>
                <div class="subtitle">目前暂支持iPhone系列</div>
                <i class="icon icon-arow-right"></i>
              </a>

              <a class="index-select-item click-active" href="device_upgrade/device-select.php">
                <i class="mainpic index-icon4"></i>
                <div class="title">容量升级</div>
                <div class="subtitle">目前暂支持iPhone系列</div>
                <i class="icon icon-arow-right"></i>
              </a>



            </div>

            <div class="index-bottom-btns">
                <a href="customer/order-history.php" class="btn-item click-active" data-ignore-cache="true"><i class="mainpic index-icon-order"></i>订单查询</a>
                <a href="tel:<?php echo PROJECT_TEL; ?>" class="btn-item click-active external"><i class="mainpic index-icon-phone"></i>电话下单</a>
            </div>


          </div>
        </div>


      </div>
    </div>
    <!-- Path to Framework7 Library JS-->
    
	  
	  <!--
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>


          <script>

              wx.config({
                  debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
                  appId: 'wx139b31d85ea95bfe', // 必填，公众号的唯一标识
                  timestamp: '1463062827', // 必填，生成签名的时间戳
                  nonceStr: 'D6C651DDCD97183B2E40BC464231C962', // 必填，生成签名的随机串
                  signature: '175971fd66ab9ac9b6a695d22be43dfd121c87d2', // 必填，签名
                  jsApiList: ['chooseWXPay', 'chooseImage', 'uploadImage', 'scanQRCode'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
              });
          </script>
-->

    <script src="http://webapi.amap.com/maps?v=1.3&key=3138e6d17defb23a0ae496fecc419f8f&plugin=AMap.Geolocation"></script>

   <!-- Path to your app js-->
    <script type="text/javascript" src="script/my-app.js?v=12"></script>


 
 </body>
</html>
